﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using ProjectCore.Common;
using ProjectCore.Domain.Model.Entity;

namespace ProjectCore.Domain.DomainService
{
    public interface IAdminDomainService
    {
        /// <summary>
        /// 获取管理员数据
        /// </summary>
        /// <returns></returns>
        Task<HeaderResult<List<Admin>>> GetAdmins(string na, int pageIndex, int pageSize);
        /// <summary>
        /// 添加管理员
        /// </summary>
        /// <param name="admin"></param>
        /// <returns></returns>
        Task<int> AddAdmin(Admin admin);
    }
}
